import request from '@/utils/request'

export function getList(data) {
  return request({
    url: 'wishu-financial/factoring/searchCfContract',
    method: 'get',
    params: {
      premiseName:data.premiseName,
      TenantName:data.TenantName,
      size:data.size,
      current:data.current
    }
  })
}


export function catulateFactorInfo(contractId,productId,interestRate,serviceFee,rowNo) {
  return request({
    url: 'wishu-financial/factoring/catulateFactorInfo',
    method: 'get',
    params: {
      contractId:contractId,
      productId:productId,
      interestRate:interestRate,
      serviceFee:serviceFee,
      rowNo:rowNo
    }
  })
}


export function saveFactoringApply(data) {
  return request({
    url: 'wishu-financial/factoring/saveFactoringApply',
    method: 'post',
    data:data
  })
}
